/*
 * date.h
 *
 *  Created on: Apr 14, 2009
 *      Author: kuncai
 */

#ifndef DATE_H_ 
#define DATE_H_

#include <string>
using namespace std;
#include <time.h>
class Date
{
	public:
		Date();
		Date( tm Tm);
		Date( time_t Time_t);
		Date(string Time);
		 time_t ToTime_t();
		string ToString();
		int Cmp(Date* date);//if this > date return 1 else return 0;
	private:
		 tm mTm;
		 time_t mTime_t;
		string sTime;
};
typedef Date Date_t;
#endif /* DATE_H_ */
